package test.test1;

public class Circle implements Shape {
    private double r;

    public Circle(double r) {
        this.r = r;
    }

    public double getR() {
        return r;
    }


    @Override
    public double calculateArea() {
        return Math.pow(this.r, 2) * 3.14;
    }

    @Override
    public double calculatePerimeter() {
        return 2 * 3.14 * this.r;
    }
}
